package com.yykj.user.center.server.repository;

import com.yykj.user.center.server.model.Exhort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ExhortRepository extends JpaRepository<Exhort, Integer>, JpaSpecificationExecutor<Exhort> {

    List<Exhort> findAllByBusinessIdOrderBySort(String medicalRecordId);
}
